var express = require("express");
var router = express.Router();
var path = require("path");
var userController = require(path.join(
  process.cwd(),
  "/controller/userController"
));
/* GET home page. */
router.post("/regist", userController.regist);
router.post("/login", userController.login);
router.post("/updatePassword", userController.updatePassword);
router.post("/updateIcon", userController.updateIcon);
router.get("/getUserInfo", userController.getUserInfo);
router.delete("/deleteUser", userController.deleteUser);
router.post("/findUser", userController.findUser);
router.post("/addDownload", userController.addDownload);
module.exports = router;
